home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F1448_PlaySound.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  3KB  |  72 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Play Sound Action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Play Sound Action</font>
  12.             <hr>
  13.         </center>
  14.         <csactionclass name="Play Sound" function="CSPlaySound" nsversion="3" ieversion="4">
  15.         <csactionparam name="name" type="GLActionPlugInParam"></csactionparam>
  16.         </csactionclass>
  17.         <p>
  18.         <script language="JavaScript1.2"><!--
  19. var CSLastSound = null
  20. function CSPlaySound(action) {
  21.     if (eval('document.'+action[1])!=null) {
  22.         if (CSLastSound != null && CSLastSound != action[1]) eval ('document.' + CSLastSound + '.stop()');
  23.         CSLastSound = action[1]
  24.         if (window.navigator.userAgent.indexOf("MSIE") > 0) eval ('document.' + CSLastSound + '.run()');
  25.         else eval ('document.' + CSLastSound + '.play(true)');
  26.     } else { alert ("The current Plug-In cannot be controlled by JavaScript. Please try using LiveAudio or a compatible Plug-In!"); }
  27. }
  28. // -->
  29.         </script>
  30.         <b>Play Sound.scpt</b> </p>
  31.  
  32.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  33.             <tr height="1" cntrlrow>
  34.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  35.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  36.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  37.                 <td width="140" height="1"><spacer type="block" width="140" height="1"></td>
  38.             </tr>
  39.             <tr height="6">
  40.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  41.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  42.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  43.                 <td width="140" height="6"><spacer type="block" width="140" height="6"></td>
  44.             </tr>
  45.             <tr height="3">
  46.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  47.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  48.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  49.                 <td width="140" height="24" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  50.                     <csactioncntrl name="name" x="80" y="6" width="136" height="18" alignx="scale" aligny="top">
  51.                 </td>
  52.             </tr>
  53.             <tr height="21">
  54.                 <td width="1" height="21"><spacer type="block" width="1" height="21"></td>
  55.                 <td width="4" height="21"><spacer type="block" width="4" height="21"></td>
  56.                 <td width="76" height="21" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  57.                     <csactioncntrl type="InfoText" value="Name" x="4" y="9" width="70" height="16" alignx="left" aligny="top">
  58.                 </td>
  59.             </tr>
  60.             <tr height="122">
  61.                 <td width="1" height="122"><spacer type="block" width="1" height="122"></td>
  62.                 <td width="4" height="122"><spacer type="block" width="4" height="122"></td>
  63.                 <td width="216" height="122" colspan="2" rowspan="1" valign="top" align="left" xpos="4">
  64.                     <csactioncntrl type="InfoText" value="Plug-Ins need a name to be a target for this action.
  65. Please note that this action requires an audio plug-in that can be controlled by JavaScript." x="4" y="30" width="212" height="82" alignx="scale" aligny="top">
  66.                 </td>
  67.             </tr>
  68.         </table>
  69.     </body>
  70.  
  71. </html>
  72.